-- GENERATED SPELL FOR [Magram Marauder] --


function spell0_4644(pUnit, Event) --@Berserker Stance,Self--
pUnit:FullCastSpellOnTarget(7366,pUnit)
pUnit:RegisterEvent('Sorts_4644', 552, 1)
end

function spell1_4644(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4644', 675, 1)
end

function Sorts_4644(pUnit, Event)
local choix_sorts_4644 = math.random(0, 1)
if choix_sorts_4644 == 0 then
pUnit:RegisterEvent('spell0_4644', 1, 1)
end
if choix_sorts_4644 == 1 then
pUnit:RegisterEvent('spell1_4644', 1, 1)
end
end

function mob4644_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4644', math.random(1500, 3000), 1)
end

function mob4644_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4644_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4644_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4644, 1, 'mob4644_Action')
RegisterUnitEvent(4644, 2, 'mob4644_Leave')
RegisterUnitEvent(4644, 3, 'mob4644_Kill')
RegisterUnitEvent(4644, 4, 'mob4644_Die')
